package com.mms.action.meeting;

import java.util.List;

import com.mms.dao.MeetingManagementDao;
import com.mms.entity.InvitationId;
import com.mms.entity.Meeting;
import com.opensymphony.xwork2.Action;

public class SearchMeetingAction implements Action{

	private String searchMes;
	List<Meeting> meetingMes;
	List<InvitationId> invitation;
	
	public String getSearchMes() {
		return searchMes;
	}

	public void setSearchMes(String searchMes) {
		this.searchMes = searchMes;
	}

	public List<Meeting> getMeetingMes() {
		return meetingMes;
	}

	public void setMeetingMes(List<Meeting> meetingMes) {
		this.meetingMes = meetingMes;
	}

	public List<InvitationId> getInvitation() {
		return invitation;
	}

	public void setInvitation(List<InvitationId> invitation) {
		this.invitation = invitation;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		MeetingManagementDao mmd = new MeetingManagementDao();
		meetingMes = mmd.getSearchMeetingMes(searchMes);
		invitation = mmd.getInvitions();
		return "success";
	}

}
